//
// Created on 2024/12/9.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef QT_FLUTTERBRIDGEJSSIDE_H
#define QT_FLUTTERBRIDGEJSSIDE_H
#include <QObject>
#include "napi/native_api.h"
namespace FB {
class  FlutterBridgeJsSide: public QObject {
    Q_OBJECT
    FlutterBridgeJsSide() = default;
    Q_DISABLE_COPY_MOVE(FlutterBridgeJsSide)

public:
    static FlutterBridgeJsSide *instance();
    
Q_SIGNALS:
    void sigSendData(const std::string &handler, const std::string &fun, const void* message);
    
public Q_SLOTS:
    void slotReceiveData(const std::string &handler, const std::string &fun, const void* message);
};
}
#endif //QTDEMO_FLUTTERBRIDGEJSSIDE_H
